package com.winapi.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.winapi.project.model.vo.UserInterfaceInfoVO;
import com.winapi.winapicommon.model.entity.UserInterfaceInfo;

import java.util.List;

/**
* @author 张莹莹
* @description 针对表【user_interface_info(用户调用接口关系)】的数据库操作Mapper
* @createDate 2023-12-06 15:40:57
* @Entity generator.domain.UserInterfaceInfo
*/
public interface UserInterfaceInfoMapper extends BaseMapper<UserInterfaceInfo> {

    /**
     * 调用次数前三的接口列表
     * @return
     */
    List<UserInterfaceInfo>topNumber();

    /**
     * 我拥有的接口
     * @param userId
     * @return
     */
    List<UserInterfaceInfoVO> getInterfaceInfoByUserId(Long userId);
}




